package br.edu.univas.locadoragraph.bean;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;



/*

@FacesConverter(value="tipoAtorConverter", forClass=ActorTO.class)  
public class ConverterAtor implements Converter {
 
   public String getAsString(FacesContext context, UIComponent component, Object value) {
 
 
      return String.valueOf(((ActorTO) value).getName());
   }
   public Object getAsObject(FacesContext arg0, UIComponent arg1, String value) {
 
      ActorTO actorConverter = new ActorTO();
      actorConverter.setName(actorConverter.getName());  
      return actorConverter;
      
      List<>
   }
}

/*
long groupId = Long.parseLong(value);
List<AssetCategory> groups = vehiclesBean.getVehicleGroups();
for (AssetCategory group : groups) {
    if (group.getCategoryId() == groupId) {
        return group;
    }
}
return null;*/
